﻿@using SPCFMedicineInformer.Helpers;
@{
    var Index = UmbracoNodeHelper.GetAdminSiteNode();
    var Current = Model.AncestorOrSelf(3);
    string selected = "id=\"menu-active\"";
    if (Index != null)
    {
        <ul class="box">
        @foreach(var item in Index.ChildrenAsList.Where(a=>a.NodeTypeAlias == "AdminContentPage" && a.GetProperty("umbracoNaviHide").ToString() == "0"))
        {
            <li @Html.Raw(Current.Id == item.Id ? selected : "")>
                <a href="@item.Url">
                    <span>@item.Name</span>
                </a>
            </li>
        }
        </ul>
    }
}